package com.dgw.exception;

import com.dgw.enums.ResultEnum;

@SuppressWarnings("all")
public class MyException extends RuntimeException{
	
	private Integer code;

	public MyException(ResultEnum  resultEnum) {
		super(resultEnum.getMsg());
		this.code = resultEnum.getCode();
	}
	
	public MyException(int code,String msg) {
		super(msg);
		this.code = code;
	}
	
	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}
	
}
